import OneTitleComp from './OneTitle'
import MesSearch from './MesSearch'
import OrdinarySearch from './MesSearch/OrdinarySearch'
/* 重构后的搜索组件*/
import MesSearchComp from './mesSearchComp/Index'

import TaskBomTree from './mesTree/taskBomTree/Index'
import WorkOrderBomTree from './mesTree/workOrderBomTree/Index'
import ResumeTree from './mesTree/resumeTree/Index'
import MesPaginationComp from './MesPagination'
import MesColumn from './mesColumn/Index'
import MesCell from './mesCell/Index'
import DisabledBtn from './disabledBtn/DisabledBtn'

/* 重构后的列组件 */
import MesColComp from './mesColComp/Index'
import MesCellComp from './mesCellComp/Index'

import InfoGrid from './infoGrid/InfoGrid'
import TooltipTxt from './TooltipTxt'
import CodeScan from './codeScan/Index'
import LogDetail from './LogDetail'
import TaskNumberTree from './mesTree/taskNumberTree/Index'
import {SecretUploadDialog} from './secretUpload'
import ColumnControl from './ColumnControl'

const component = {
  install: function (Vue) {
    // 一级标题（列表页标题）
    Vue.component('OneTitle', OneTitleComp)
    // 搜索
    Vue.component('MesSearch', MesSearch)
    // 普通搜索
    Vue.component('OrdinarySearch', OrdinarySearch)
    // 搜索(重构后)
    Vue.component('MesSearchComp', MesSearchComp)
    // Bom-工单树
    Vue.component('WorkOrderBomTree', WorkOrderBomTree)
    // 任务号Bom树
    Vue.component('TaskBomTree', TaskBomTree)
    // 产品履历树
    Vue.component('ResumeTree', ResumeTree)
    // 任务号列表
    Vue.component('TaskNumberTree', TaskNumberTree)
    // 分页
    Vue.component('MesPagination', MesPaginationComp)
    // 表格列
    Vue.component('MesColumn', MesColumn)
    // 表格单元格
    Vue.component('MesCell', MesCell)
    // 表格列(重构后)
    Vue.component('MesColComp', MesColComp)
    // 表格单元格(重构后)
    Vue.component('MesCellComp', MesCellComp)
    // 详情网格
    Vue.component('InfoGrid', InfoGrid)
    // 溢出隐藏气泡
    Vue.component('TooltipTxt', TooltipTxt)
    // 扫码输入框
    Vue.component('CodeScan', CodeScan)
    // 密级上传弹框
    Vue.component('SecretUploadDialog', SecretUploadDialog)
    // 日志详情
    Vue.component('LogDetail', LogDetail)
    // 列隐藏
    Vue.component('ColumnControl', ColumnControl)
    // 禁用提示按钮
    Vue.component('DisabledBtn', DisabledBtn)
  }
}

export default component
